/*
 * @description  : 真烟流动表头定义
 * @descriptionDetail: 真烟流动表头定义
 * @copyright    : 浙江烟草
 * @author       : lcm
 * @create       : 2022-09-27 09:58:58
 */

import theme from "@/theme/variables.scss.js";

// 真烟流动表头定义
const Headers = {
  area: [   // 区域
    {     // 区域标题列
      label: "单位",
      key: 'areaName',
      width: 2,
      align:'center',
      fixed: true,
    },
    {
      label: '卷烟数',
      key: 'zs',
      width: 3,
      align:'right',
      sort: '',
      total: true,    // 是否合计
    }, {
      label: '同期',
      key: 'ajsTq', 
      width: 3,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '同比',
      key: 'zsRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '占比',
      key: 'hjRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align: 'right',
      sort: '',
    }, {
      label: '省内数',
      key: 'snzs',
      width: 3,
      align:'right',
      sort: '',
      total: true,
    },{
      label: '同比',
      key: 'snRatioTb',
      width: 3,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '区域占比',
      key: 'areaSnRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '卷烟占比',
      key: 'snRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '省外数',
      key: 'swzs',
      width: 3,
      align:'right',
      sort: '',
      total: true,
    },{
      label: '同比',
      key: 'swRatioTb',
      width: 3,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '区域占比',
      key: 'areaSwRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '卷烟占比',
      key: 'swRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '不明数',
      key: 'bmzs',
      width: 3,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
      total: true,
    },{
      label: '同比',
      key: 'bmRatioTb',
      width: 3,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '区域占比',
      key: 'areaBmRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    },{
      label: '卷烟占比',
      key: 'bmRatio',
      width: 2,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, 
  ],
  areaBCH: [ // 区域被查获标题列
    {     
      label: "单位",
      key: 'areaName',
      width: 4,
      align:'center',
      fixed: true,
    },   
    {
      label: '卷烟数',
      key: 'chsl',
      width: 3,
      align: 'right',
      negativeColor: theme.u_type_error,
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'hjRatio',
      negativeColor: theme.u_type_error,     // 负数颜色
      width: 2.5,
      align:'right',
      sort: '',
    }, {
      label: '同比',
      key: 'tbRatio',
      negativeColor: theme.u_type_error,     // 负数颜色设置
      width:2.5,
      align:'right',
      sort: '',
    },{
      label: '市外卷烟数',
      key: 'snsl',
      width: 4,
      align:'right',
      sort: '',  
      total: true,     
    }, {
      label: '省外卷烟数',
      key: 'swsl',
      width: 4,
      align:'right',
      sort: '',
      total: true,
    },
  ],
  brand: [  // 品规
    {     // 品规标题列
      label: '品规',
      key: 'cigaName',
      width: 4,
      fixed: true,
      align:'center',
    }, {
      label: '数量',
      key: 'zs',
      width: 3,
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'hjRatio',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '同比',
      key: 'zsRatio',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '省内',
      key: 'snzs',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      sort: '',
    }, {
      label: '省外',
      key: 'swzs',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '不明',
      key: 'bmzs',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
      total: true,
    },
  ],
  brand0: [  // 被查获品规  登陆人市级
    {     // 品规标题列
      label: '品规',
      key: 'cigaName',
      width: 4,
      fixed: true,
      align:'center',
    }, {
      label: '数量',
      key: 'schsl',
      width: 3,
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'cigaRatio',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '同比',
      key: 'cigaRatioTb',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '省外',
      key: 'gjjswsl',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '市外',
      key: 'swsl',
      width: 4,
      align:'right',
      sort: '',
      total: true,
    },
  ],
  brand1: [  // 被查获品规  登陆人省级
    { 
      label: '品规',
      key: 'cigaName',
      width: 4,
      fixed: true,
      align:'center',
    }, {
      label: '数量',
      key: 'chsl',
      width: 3,
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'cigaRatio',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '同比',
      key: 'cigaRatioTb',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '省外',
      key: 'gjjswsl',
      width: 4,
      align:'right',
      sort: '',
      total: true,
    },{
      label: '省内不明',
      key: 'swsl',
      width: 4,
      align:'right',
      sort: '',
      total: true,
    },
  ],
  brand2: [  // 被查获品规  登陆人县级
    {   
      label: '品规',
      key: 'cigaName',
      width: 4,
      fixed: true,
      align:'center',
    }, {
      label: '数量',
      key: 'chsl',
      width: 2.5,
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'cigaRatio',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '同比',
      key: 'cigaRatioTb',
      width: 3,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
    }, {
      label: '省外',
      key: 'gjjswsl',
      width: 2.5,
      negativeColor: theme.u_type_error,     // 负数颜色设置
      align:'right',
      sort: '',
      total: true,
    },{
      label: '市外',
      key: 'swsl',
      width: 2.5,
      align:'right',
      sort: '',
      total: true,
    },{
      label: '区县外',
      key: 'snqtsl',
      width: 2.5,
      align:'right',
      sort: '',
      total: true,
    },
  ],  
  source: [ // 来源地
    {     // 来源地标题列
      label: '来源地',
      key: 'areaName',
      fixed: true,
      width: 4,
      align:'center',
    }, {
      label: '卷烟数',
      key: 'jyNum',
      width: 3,    // 正数颜色设置
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'jyRatio',
      negativeColor: theme.u_type_error,     // 负数颜色设置
      width: 2.5,
      align:'right',
      sort: '',
    },{
      label: '同比',
      key: 'jyRatioTb',
      negativeColor: theme.u_type_error,     // 负数颜色设置
      width: 2.5,
      align:'right',
      sort: '',
    },{
      label: '案件数',
      key: 'ajNum',
      negativeColor: theme.u_type_error,     // 负数颜色设置
      width: 3,    // 正数颜色设置
      align:'right',
      sort: '',
      total: true,
    }, {
      label: '占比',
      key: 'ajRatio',
      negativeColor: theme.u_type_error,     // 负数颜色设置
      width: 2.5,
      align:'right',
      sort: '',
    },{
      label: '同比',
      key: 'ajRatioTb',
      negativeColor: theme.u_type_error,     // 负数颜色设置
      width: 2.5,
      align:'right',
      sort: '',
    },
  ],
}

export default Headers;